package com.bfs.core.jsf.listeners;

/**
 * Created by IntelliJ IDEA.
 * User: lukman
 * Date: 6/17/11
 * Time: 5:16 PM
 * To change this template use File | Settings | File Templates.
 */

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;

public class PhaseListener implements javax.faces.event.PhaseListener {
    public void afterPhase(PhaseEvent event) {
        event.getFacesContext().getExternalContext().log("AFTER " + event.getPhaseId());
    }

    public void beforePhase(PhaseEvent event) {
        event.getFacesContext().getExternalContext().log("BEFORE " + event.getPhaseId());
    }

    public PhaseId getPhaseId() {
        return PhaseId.ANY_PHASE;
    }
}

